package com.lh.aop;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class AopApplicationContext {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AopConfig.class);

        HelloService helloService = context.getBean(HelloService.class);

        helloService.sayHello("王森淼");

        context.close();
    }
}

